package edu.chinasoft.mapper;

import edu.chinasoft.domain.PageUnitForUser;
import edu.chinasoft.domain.User;

import java.util.List;
import java.util.Map;


public interface UserMapper {
    //注册   添加
    List<User> selectUserByUserName(User user);
    Boolean insertUser(User user);
    //插入身份证信息
    boolean insertIdcard(User user);
    //更新身份证中的userId
    boolean updateIdcardUserId(User user);

    //登录
    User selectUserByNameAndPassword(User user);

    //分页查询
    PageUnitForUser getRecordNum();
    List<User> selectUnitUser(Map<String,Object> map);

    boolean updateUserByUserId(User user);
    //根据用户id修改身份证号
    boolean updateIdcardNoByUserId(User user);


    boolean deleteUserById(User user);

    User selectUserById(User user);
    boolean updateUserStatusById(User user);
}
